package ventanas;

import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.FlowLayout;
import net.miginfocom.swing.MigLayout;
import java.awt.GridLayout;
import javax.swing.JLabel;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;

public class VentanaMenuProducto extends JFrame{
	public VentanaMenuProducto() {
		setTitle("Producto");
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[]{0, 0, 0, 51, 95, 0, 95, 0, 110, 0, 100, 0};
		gridBagLayout.rowHeights = new int[]{0, 0, 71, 0, 55, 0, 0, 0, 0};
		gridBagLayout.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gridBagLayout.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		getContentPane().setLayout(gridBagLayout);
		
		JButton btnVer = new JButton("Ver");
		GridBagConstraints gbc_btnVer = new GridBagConstraints();
		gbc_btnVer.insets = new Insets(0, 0, 5, 5);
		gbc_btnVer.fill = GridBagConstraints.BOTH;
		gbc_btnVer.gridx = 4;
		gbc_btnVer.gridy = 2;
		getContentPane().add(btnVer, gbc_btnVer);
		
		JButton btnAadir = new JButton("A\u00F1adir");
		GridBagConstraints gbc_btnAadir = new GridBagConstraints();
		gbc_btnAadir.insets = new Insets(0, 0, 5, 5);
		gbc_btnAadir.fill = GridBagConstraints.BOTH;
		gbc_btnAadir.gridx = 8;
		gbc_btnAadir.gridy = 2;
		getContentPane().add(btnAadir, gbc_btnAadir);
		
		JButton btnBorrar = new JButton("Borrar");
		GridBagConstraints gbc_btnBorrar = new GridBagConstraints();
		gbc_btnBorrar.fill = GridBagConstraints.BOTH;
		gbc_btnBorrar.insets = new Insets(0, 0, 5, 5);
		gbc_btnBorrar.gridx = 6;
		gbc_btnBorrar.gridy = 4;
		getContentPane().add(btnBorrar, gbc_btnBorrar);
		
		JButton btnAtrs = new JButton("Atr\u00E1s");
		GridBagConstraints gbc_btnAtrs = new GridBagConstraints();
		gbc_btnAtrs.fill = GridBagConstraints.HORIZONTAL;
		gbc_btnAtrs.insets = new Insets(0, 0, 5, 5);
		gbc_btnAtrs.gridx = 8;
		gbc_btnAtrs.gridy = 6;
		getContentPane().add(btnAtrs, gbc_btnAtrs);
		
		
	}

}
